﻿using System.Collections.Generic;
using Nop.Core.Domain.ShowCase;

namespace Nop.Services.ShowCase
{

    public class  ShowCaseSaveResult
    {
        public IList<string> Errors { get; set; }

        public ShowCaseSaveResult() 
        {
            this.Errors = new List<string>();
        }

        public bool Success 
        {
            get { return this.Errors.Count == 0; }
        }

        public void AddError(string error) 
        {
            this.Errors.Add(error);
        }
    }

    public interface IShowCaseService
    {
        ShowCaseProduct GetShowCaseProduct(int id);
        ShowCaseSaveResult SaveShowCase(ShowCaseProduct showCaseProduct);
    }
}